package com.platform.data.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 读取Sheet页实体类Model
 *
 * @author weijun.zhu
 * @date 2025/5/11 15:10
 */
public class ReadDataModel {

    /**
     * 属性名称（当前节点）
     */
    private String fieldName;

    /**
     * 是否是第一个Sheet页
     */
    private Boolean firstSheetFlag;

    /**
     * 属性名称
     * 顺序同Sheet的头部
     */
    private List<String> fieldNameList;

    /**
     * 唯一属性名称
     */
    private String uniqueFieldName;

    /**
     * 属性名称（子节点）
     */
    private String childNodeName;

    /**
     * 读取列表
     */
    private List<Map<String, Object>> dataList;

    public ReadDataModel(Boolean firstSheetFlag) {
        this.fieldNameList = new ArrayList<>();
        this.dataList = new ArrayList<>();
        this.firstSheetFlag = firstSheetFlag;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public Boolean getFirstSheetFlag() {
        return firstSheetFlag;
    }

    public void setFirstSheetFlag(Boolean firstSheetFlag) {
        this.firstSheetFlag = firstSheetFlag;
    }

    public List<String> getFieldNameList() {
        return fieldNameList;
    }

    public void setFieldNameList(List<String> fieldNameList) {
        this.fieldNameList = fieldNameList;
    }

    public String getUniqueFieldName() {
        return uniqueFieldName;
    }

    public void setUniqueFieldName(String uniqueFieldName) {
        this.uniqueFieldName = uniqueFieldName;
    }

    public String getChildNodeName() {
        return childNodeName;
    }

    public void setChildNodeName(String childNodeName) {
        this.childNodeName = childNodeName;
    }

    public List<Map<String, Object>> getDataList() {
        return dataList;
    }

    public void setDataList(List<Map<String, Object>> dataList) {
        this.dataList = dataList;
    }
}
